package com.changgou.order.service;

import com.changgou.order.pojo.CartItem;
import lombok.SneakyThrows;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface CartService {
    void add(String skuId, Integer num,String userName) throws UnsupportedEncodingException;

    void add(String skuId, Integer num) throws UnsupportedEncodingException;

    Map getListFromCookie()  throws UnsupportedEncodingException ;

    Map getListFromRedis(String userName) throws UnsupportedEncodingException;

    void delete(String skuId);

    void delete(String skuId,String userName);

    void updateNum(String skuId, Integer num, String userName);

    void updateNum(String skuId, Integer num);

    void updateChecksd(String skuId, String userName) throws UnsupportedEncodingException;

    void updateChecksd(String skuId) throws UnsupportedEncodingException;

    void allChecksd(Boolean checikStatus, String userName) throws UnsupportedEncodingException;

    void allChecksd(Boolean checikStatus) throws UnsupportedEncodingException;
}
